package com.issc.zq;

/**
 * Created by Administrator on 2017/8/15.
 */
public class Transports {

    private String appearance;                               //长的，方的，圆的......外观
    private String size;                                     //small,big.....
    private float price;
    private float weight;
    private int wheelNum;                                   //轮子数：0,1,2,3,4,5,6....
    //public static String funcation = "运输物体";
    public static String common = "move";                          //想的好辛苦，原来大家都能移动啊！

    public void transportWay(){
        if(wheelNum == 1){
            System.out.println("功能：我能拉土!啧啧。。。");
        }
        else if(wheelNum == 2){
            System.out.println("功能：单车？摩托？都能载人！（话说，火箭也能载人~~）");
        }
        else if(wheelNum == 4){
            System.out.println("功能：是个汽车！功能太多了，并不想列举！");
        }
        else {
            System.out.println("功能：你猜我是啥，我能干嘛？");
        }
    }

    public void show(){
        System.out.println("我的外观是：" + appearance);
        System.out.println("我的尺寸是：" + size );
        System.out.println("我的价值是：" + price);
        System.out.println("我的重量是：" + weight);
        System.out.println("我的轮子数是：" + wheelNum);
        System.out.println("我能" + common);
    }

    /*public void setAppearance(String realAppearance){
        appearance = realAppearance;
    }
    public void setSize(String realSize){
        size = realSize;
    }
    public void setWheelNum(int realWheelNum){
        wheelNum = realWheelNum;
    }
    public void setPrice(float realPrice){
        price = realPrice;
    }
    public void setWeight(float realWeight){
        weight = realWeight;
    }*/
    public Transports(){}
    public Transports(String realAppearance,String realSize,float realPrice,int realWheelNum,float realWeight ){
        this.appearance = realAppearance;
        this.size = realSize;
        this.wheelNum = realWheelNum;
        this.price = realPrice;
        this.weight = realWeight;
        show();
    }
}
